package aooO.crm.Service.impl;

import aooO.crm.Service.ClueRemarkService;
import aooO.crm.mapper.ClueRemarkMapper;
import aooO.crm.pojo.ClueRemark;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClueRemarkServiceImpl implements ClueRemarkService {

    @Autowired
    ClueRemarkMapper clueRemarkMapper;

    @Override
    public List<ClueRemark> selectAllByClueId(String clue_id) {
        return clueRemarkMapper.selectAllByClueId(clue_id);
    }

    @Override
    public int insertClueRemark(ClueRemark record) {
        return clueRemarkMapper.insertClueRemark(record);
    }

    @Override
    public int updateClueRemark(ClueRemark record) {
        return clueRemarkMapper.updateClueRemark(record);
    }

    @Override
    public int deleteClueRemarkById(String id) {
        return clueRemarkMapper.deleteClueRemarkById(id);
    }

    //根据线索id查询所有相关的评论信息
//    List<ClueRemark> selectAllByClueId(String clue_id);


}